//
//  ViewController.m
//  SetLabel
//
//  Created by student on 13-12-5.
//  Copyright (c) 2013年 student. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning
{
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


- (IBAction)btn:(id)sender
{
    self.Label.text = self.inputName.text;//将text框里面的值传给label
    self.inputName.text = @"";//清空输入框，便于下次输入
    
    [self.inputName resignFirstResponder];
    
}
@end
